import request from '@/utils/request'
// 登录api
export function login(data) {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}
// 获取登录验证码
export function getAuthCode() {
  return request({
    url: '/captcha?type=login',
    responseType: 'arraybuffer'
  })
}
